#if !defined(AFX_MYGRAPHFRAME_H__C4B96E5E_F712_42BF_B89B_D85FE9415FE0__INCLUDED_)
#define AFX_MYGRAPHFRAME_H__C4B96E5E_F712_42BF_B89B_D85FE9415FE0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyGraphFrame.h : header file
//
#include "ToolBar24BitImage.h"
/////////////////////////////////////////////////////////////////////////////
// MyGraphFrame frame

class ChildGraphFrame : public CMDIChildWnd
{
	DECLARE_DYNCREATE(ChildGraphFrame)

protected:
	friend class ZWaveeditorDoc;
	friend class GraphView;
	ZWaveeditorDoc *CurrentDocument;
	ChildGraphFrame();           // protected constructor used by dynamic creation
	CSplitterWnd	mysplit;
// Attributes
public:
	C24BitImageToolBar	m_wndToolBar;
	BYTE				graphtooltype;//0=normal tool,1=zoom tool,2=scroll tool
	int SelectedScenario;

// Operations
public:
	CWnd* GetClockWnd();
	CWnd* GetGraphWnd();
	CWnd* GetInfoWnd();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(MyGraphFrame)
	protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~ChildGraphFrame();
	afx_msg void OnShiftRight();
	afx_msg void OnShiftLeft();
	afx_msg void OnZoomin();
	afx_msg void OnZoomout();
	afx_msg void OnChooseColor();
	afx_msg void OnRemoveSignal();
	afx_msg void OnAddSignals();
	afx_msg void OnRefresh();
	afx_msg void SaveGraphScreenShot();
	afx_msg void SaveWholeGraphChart();
	afx_msg void OnGroupWaves();
	afx_msg void OnSetHighlightingRules();
	afx_msg void OnDeletePermanently();
	afx_msg void OnChangeMsUs();
	afx_msg void OnReloadLogWithChosenProperties();
	afx_msg void OnCutReturnFreeSpace();
	afx_msg void OnUpdateMsUsButton( CCmdUI* pCmdUI );
	afx_msg void OnUpdateReloadButton( CCmdUI* pCmdUI );
	afx_msg void OnGraphNormalTool();
	afx_msg void OnGraphZoomTool();
	afx_msg void OnGraphScrollTool();
	afx_msg void OnShowGrid();
private:
	bool GetPositionForPicture( __int64 &StartPosition, __int64 &EndPosition );
	CString GetNameForFile();
	// Generated message map functions
	//{{AFX_MSG(MyGraphFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CWnd* GetGraphBut(void);
	GraphView * GetGraphView();
	afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
	afx_msg void OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYGRAPHFRAME_H__C4B96E5E_F712_42BF_B89B_D85FE9415FE0__INCLUDED_)
